<?php if(!defined("INTPL")) exit(); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>

<?php echo C("misc.jquery"); ?>

<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script type="text/javascript" src="http://ditu.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
	$().ready(function() {

		// validate signup form on keyup and submit
		$("#f1").validate({
			rules: {
				title: "required",
				renshu: {
					required: true,
					//minlength: 2
					maxlength:5
				},
				hangye : "digits",
				diqu : "digits",
				xueli : "digits",
				jingyan : "digits",
				xinzi : "digits",
			},
			messages: {
				title: "必须填写",
				renshu: {
					required: "必须填写",
					//minlength: "Your username must consist of at least 2 characters"
					maxlength: "最多输入5位数字",
				},
				hangye : "必须选择",
				diqu : "必须选择",
				xueli : "必须选择",
				jingyan : "必须选择",
				xinzi : "必须选择",
			}
		});
	});



  function initialize() {
    var latlng = new google.maps.LatLng(35.05095, 118.34493);
    var myOptions = {
      zoom: 13,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
    var map = new google.maps.Map(document.getElementById("map"), myOptions);
	
	<?php if(!empty($vo["gmapx"]) && !empty($vo["gmapy"]) ) { ?>
	var volatlng = new google.maps.LatLng(<?php echo $vo["gmapx"]; ?>,<?php echo $vo["gmapy"]; ?>);
	<?php } else { ?>
	var volatlng = new google.maps.LatLng(35.05095, 118.34493);
	<?php } ?>
	
	var marker = new google.maps.Marker({
	  position: volatlng, 
	  map: map, 
	  title:"拖拽到工作地点",
	  draggable : true,
	});
	
	google.maps.event.addListener(marker, 'dragend', function() {
		var mlat = this.getPosition();
		$("#gmapx").val(mlat.lat());
		$("#gmapy").val(mlat.lng());
	});

  }

</script>


<style>
#zhaopin table {
line-height:30px;
}






</style>
</head>

<body onload="initialize()">

<div id="zhaopin">



	<form action="?a=job_zp_update" method="post" name="f1">
	
	<input name="id" type="hidden" value="<?php echo $vo["id"] ?>" />
	
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	
	  <tr>
		<td><div align="right">职位名称</div></td>
		<td></td>
		<td>
			<input type="text" name="title" value="<?php echo $vo["title"] ?>" />
		</td>
	  </tr>
	  
	  <tr>
		<td width="8%"><div align="right">招聘人数</div></td>
		<td width="2%"></td>
		<td width="90%"><input type="text" name="renshu" value="<?php echo $vo["renshu"] ?>" /></td>
	  </tr>
	  
	  <tr>
		<td><div align="right">职位类别</div></td>
		<td></td>
		<td>
			<select name="hangye">
				<option>请选择</option>
				<?php foreach($hy_list as $key) { ?>
					<option <?php if($vo["hangye"]==$key["id"]) { ?> selected="selected" <?php } ?> value="<?php echo $key["id"] ?>"><?php echo $key["title"] ?></option>
				<?php } ?>
			</select>
		</td>
	  </tr>
	  
	  <tr>
		<td><div align="right">工作地区</div></td>
		<td></td>
		<td>
			<select name="diqu">
				<option>请选择</option>
				<?php foreach($dq_list as $key) { ?>
					<option <?php if($vo["diqu"]==$key["id"]) { ?> selected="selected" <?php } ?> value="<?php echo $key["id"] ?>"><?php echo $key["title"] ?></option>
				<?php } ?>
			</select>
		</td>
	  </tr>
	  
	  <tr>
		<td><div align="right">学历要求</div></td>
		<td></td>
		<td>
			<select name="xueli">
				<option>请选择</option>
				<?php foreach($xl_list as $key) { ?>
					<option <?php if($vo["xueli"]==$key["id"]) { ?> selected="selected" <?php } ?> value="<?php echo $key["id"] ?>"><?php echo $key["title"] ?></option>
				<?php } ?>
			</select>
		</td>
	  </tr>
	  
	  <tr>
		<td><div align="right">经验要求</div></td>
		<td></td>
		<td>
			<select name="jingyan">
				<option>请选择</option>
				<?php foreach($jy_list as $key) { ?>
					<option <?php if($vo["jingyan"]==$key["id"]) { ?> selected="selected" <?php } ?> value="<?php echo $key["id"] ?>"><?php echo $key["title"] ?></option>
				<?php } ?>
			</select>
		</td>
	  </tr>
	  
	  <tr>
		<td><div align="right">职位月薪</div></td>
		<td></td>
		<td>
			<select name="xinzi">
				<option>请选择</option>
				<?php foreach($xz_list as $key) { ?>
					<option <?php if($vo["xinzi"]==$key["id"]) { ?> selected="selected" <?php } ?> value="<?php echo $key["id"] ?>"><?php echo $key["title"] ?></option>
				<?php } ?>
			</select>
		</td>
	  </tr>
	  
	
	  
	  <tr>
		<td><div align="right">岗位,工作环境,福利 简单描述</div></td>
		<td></td>
		<td>
			<textarea name="content" cols="100" rows="12"><?php echo $vo["content"]; ?></textarea>
		</td>
	  </tr>
	  
	  <tr>
		<td>工作地点</td>
		<td>
				<input name="gmapx" id="gmapx" type="hidden" />
				<input name="gmapy" id="gmapy" type="hidden" />
		</td>
		<td>
			<div id="map" style="width:600px; height:300px;"></div>
		</td>
	  </tr>

	  
	  <tr>
		<td></td>
		<td></td>
		<td>
			<input type="submit" value="提交" />
			<input type="reset" value="重置" />
		</td>
	  </tr>

	  
	</table>
	</form>



<div>





</body>
</html>
